			<div class="centCont">
            	<div class="boxCent">
                	<div class="tt-boxCent">
                    	<p>Thanh toán</p>
                        <div class="che-tt-cent"></div>
                    </div><!--tt-boxCent-->
                    <div class="cc-boxCent">
                    	<div class="thanhtoantiep">
                        	<ul>
                            	<li class="title"><p>Thông tin khách hàng</p></li>
                                <li class="chitiet">
                                	<ul>
                                    	<li class="left"><p>Họ và tên :</p></li>
                                        <li class="right"><span><?php echo $this->dataUser['hoten'];?></span></li>
                                    </ul>
                                </li>
                                <li class="chitiet">
                                	<ul>
                                    	<li class="left"><p>Địa chỉ :</p></li>
                                        <li class="right"><span><?php echo $this->dataUser['diachi'];?></span></li>
                                    </ul>
                                </li>
                                <li class="chitiet">
                                	<ul>
                                    	<li class="left"><p>Tỉnh/Thành phố :</p></li>
                                        <li class="right"><span><?php echo constants::$arrayCountry[$this->dataUser['tinh']];?></span></li>
                                    </ul>
                                </li>
                                <li class="chitiet">
                                	<ul>
                                    	<li class="left"><p>Quốc gia :</p></li>
                                        <li class="right"><span>Việt Nam</span></li>
                                    </ul>
                                </li>
                                <li class="chitiet">
                                	<ul>
                                    	<li class="left"><p>Điện thoại :</p></li>
                                        <li class="right"><span><?php echo ($this->dataUser['phone']!='') ? $this->dataUser['phone'] : $this->dataUser['phone2'];?></span></li>
                                    </ul>
                                </li>
                                <li class="chitiet">
                                	<ul>
                                    	<li class="left"><p>E-mail :</p></li>
                                        <li class="right"><span><?php echo $this->dataUser['email'];?></span></li>
                                    </ul>
                                </li>
                                <li class="title"><p>PHƯƠNG THỨC THANH TOÁN</p></li>
                                <li class="chitiet">
                                	<ul>
                                    	<li class="left"><p>Thanh toán qua cổng:</p></li>
                                        <li class="right"><span><?php echo constants::$typeThanhToan[$this->type_tt];?></span></li>
                                    </ul>
                                </li>
                                <li class="title"><p>THÔNG TIN HÓA ĐƠN<?php if ($this->maHang!='') {echo " MÃ <span style='font-weight:bold;color:#F00;'>".$this->maHang . "</span>";}?></p></li>
                                <li class="thongtinmathang">
                                	<table width="100%" cellpadding="5" cellspacing="0" border="0" style="font-size:13px;">
                                		<tr>
                                			<th class="border-right">Tên sản phẩm</th>
                                			<th width="90" class="border-right">Số lượng</th>
                                			<th width="124" class="border-right">Đơn giá</th>
                                			<th width="127">Thành tiền</th>
                                		</tr>
                                		<?php $tongTien=0; if(count($this->spGioHang) > 0) :?>
                                        <?php foreach ($this->spGioHang as $giohang) :?>
                                        <tr>
                                			<td class="border-top border-right"><?php echo $giohang['nameD']." | ".$giohang['nameC']." | ".$giohang['nameS'];?></td>
                                			<td class="border-top border-right" align="center"><?php echo $giohang['soluong'];?></td>
                                			<td class="border-top border-right" align="center"><?php echo number_format($giohang['dongia']);?>.000 VNĐ</td>
                                			<td class="border-top" align="center"><?php echo number_format($giohang['tongtien']);?>.000 VNĐ</td>
                                		</tr>
                                        <?php $tongTien += $giohang['tongtien']; endforeach;?>
                                        <?php endif;?>
                                        <tr>
                                        	<th align="right" class="border-top" colspan="3">Chi phí đơn hàng:</th>
                                        	<td align="right" class="border-top"><?php echo number_format($tongTien);?>.000 VNĐ</td>
                                        </tr>
                                        <tr>
                                        	<th align="right" colspan="3">Phí dịch vụ:</th>
                                        	<td align="right"><?php echo number_format($this->phiDV); ?> VNĐ</td>
                                        </tr>
                                        <tr>
                                        	<th class="border-bottom" align="right" colspan="3">Thành tiền:</th>
                                        	<td class="border-bottom" align="right"><?php echo $totalThanhToan = number_format(($tongTien*1000) + $this->phiDV);?> VNĐ</td>
                                        </tr>
                                	</table>
                                </li>
                                <li class="tonggiatridonhang">
                                	<p>Tổng giá trị đơn hàng số 1:</p>
                                    <span><?php echo $totalThanhToan;?> VNĐ</span>
                                </li>
                            </ul>
                            <table width="100%" cellpadding="5" cellspacing="0" border="0" style="margin-top:15px;font-size:13px;">
	                            <tr>
	                            	<th colspan="4" align="left">Tình trạng : <?php if ($this->flagActive) {echo "Đã thanh toán";} else { echo "Hoàn thành";}?></th>
	                            </tr>
	                            <?php if ($this->flagActive) :?>
		                     	<tr>
		                  			<th class='border-top border-left'>STT</th>
		                			<th class='border-top border-left' align="left">Tên sản phẩm</th>
		                			<th align="center" class='border-top border-left' align="left">Số seri</th>
		                 			<th align="center" class='border-top border-left border-right' align="left">Mã thẻ</th>
		               			</tr>
		               			<?php $i=1; if (count ($this->arMaTheActive) > 0) :?>
		                		<?php foreach ($this->arMaTheActive as $ma) :?>
		               			<tr>
		                   			<td class='border-top border-left' align="center"><?php echo $i;?></td>
		                    		<td class='border-top border-left'><?php echo $ma['nameD'] . " | " . $ma['nameC'] . " | " . $ma['nameS']; ?></td>
		                    		<td align="center" class='border-top border-left'><?php echo $ma['seri']; ?>&nbsp;</td>
		                      		<td align="center" class='border-top border-left border-right'><?php echo $ma['maSanPham'];?></td>
		                  		</tr>
		               			<?php $i++; endforeach;?>
		               			<?php endif;?>
		               			<?php if (count ($this->arSanPhamActive) > 0) :?>
		               			<tr>
		               				<td colspan="4" class='border-top border-left border-right' height="35"><span style="font-weight:bold;">Những sản phẩm này chúng tôi sẽ chuyển tới bạn sớm nhất !</span></td>
		               			</tr>
		                		<?php $j=$i; foreach ($this->arSanPhamActive as $sp) :?>
		               			<tr>
		                   			<td class='border-top border-left' align="center"><?php echo $j;?></td>
		                    		<td class='border-top border-left border-right' colspan="3"><?php echo $ma['nameD'] . (($ma['nameC']!='') ? ' | '.$ma['nameC'] : '') . " | " . $ma['nameS']; ?></td>
		                  		</tr>
		               			<?php $j++; endforeach;?>
		               			<?php endif;?>
		               			<tr>
		               				<td class="border-top">&nbsp;</td>
		               				<td class="border-top">&nbsp;</td>
		               				<td class="border-top">&nbsp;</td>
		               				<td class="border-top">&nbsp;</td>
		               			</tr>
		               			<?php endif;?>
                          </table>
                        </div><!--thanhtoantiep-->
                    </div><!--cc-boxCent-->
                </div><!--boxCent-->
                <div class="qc-cent"><img src="<?php echo WEB_LINK . "/";?>images/qc-cent-1.jpg" /></div><!--qc-cent-->
            </div><!--centCont-->